package com.springboot.example.monitor.dao.impl;

import com.springboot.example.monitor.dao.UserDao;
import com.springboot.example.monitor.mapper.UserMapper;
import com.springboot.example.monitor.domain.db.User;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


/**
 * User
 * <p/>
 * User: guoyao
 * DateTime: 2016-02-23 16:23:51
 */
@Service("userDao")
public class UserDaoImpl implements UserDao {

    @Resource
    private UserMapper userMapper;


    /**
     * 根据查询条件查询符合条件的User对象
     *
     * @param user
     * @return 符合条件的User对象List
     */
    @Override
    public List<User> select(User user) {
        return userMapper.select(user);
    }

}
